package com.example.mapper;

import com.example.pojo.TbCart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @program:bookstore2
 * @auther:linan
 * @date:2022/12/26
 **/
@Mapper
@Repository
public interface TbCartMapper {

    List<TbCart> list();
    TbCart selectById(Long id);

    //分类标签
    List<TbCart> selectByBookId(@Param("bookId") Long cid);

    List<TbCart> selectByName(@Param("bookName") String bookName);

    List<TbCart> selectByMulCon(TbCart tbCart);

    int add(@Param("book") TbCart tbCart);

    int update(@Param("book") TbCart tbCart);

}
